package unclassified.simple;

import java.util.Stack;

public class ReplaceAll_1576 {

    public String modifyString(String s) {
        char[] chars = s.toCharArray();
        for (int i = 0; i < chars.length; i++) {
            for (int j = 0; j < 3 && chars[i] == '?' ; j++) {
                boolean flag = true;
                if (i - 1 >= 0 && chars[i - 1] == 'a' + j) flag = false;
                if (i + 1 < chars.length && chars[i + 1] == 'a' + j) flag = false;
                if (flag)
                    chars[i] = (char)('a' + j);
            }
        }
        return String.valueOf(chars);
    }

    public static void main(String[] args) {
        ReplaceAll_1576 ra = new ReplaceAll_1576();
        System.out.println(ra.modifyString("ubv?w"));
    }
}
